package cn.com.service;

import java.math.BigDecimal;
import java.util.List;

import cn.com.beans.PResource;
import org.apache.ibatis.annotations.Param;

public interface PResourceService{
    /**
     * 授权操作
     * @param accountId
     * @param resourceIds
     */
    void authorization(Integer accountId,Integer ...resourceIds);

    boolean deleteByIds(@Param("ids") Integer...ids);

    boolean insert(PResource record);

    List<PResource> findAll(PResource pResource);

    List<PResource> findByRoleID(Integer roleId);

    PResource findByid(Integer id);

    boolean update(PResource resource);



}
